﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LDSP.BRL;
using System.Data;
using System.IO;

namespace LDSP.UI.EnterpriseAdmin
{
    public partial class ResponsibilityChange : BRL.BaseEnterpriseAdminPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn_ok_Click(object sender, EventArgs e)
        {
            try
            {
                this.LoginUser.Enterprise.ChangePrincipal(this.txt_old.Text, this.txt_new.Text);
                this.JSAlert("责任人转换成功！");
            }
            catch (Exception ex)
            {
                this.JSAlert("责任人转换失败!错误消息如下\n" + ex.Message);
            }
        }
    }

}